package models;

import java.util.LinkedList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import play.db.jpa.Model;

@Entity
@Table(name = "Event_Types")
public class EventType extends Model {

	public String type;

	@OneToMany(mappedBy = "type")
	public List<Event> events = new LinkedList<Event>();

	/**
	 * constructs a new EventType
	 * 
	 * @param type
	 */
	public EventType(String type) {
		this.type = type;
	}
}
